package scjp.practice.assessment1;

import java.util.ArrayList;
import java.util.List;

public class Flakes extends Cereal {

    public static void main(String args[]) {

        // Wrong because List is an interface and cannot be instantiated.
        // List<Flakes> c0 = new List<Flakes>();

        List<Cereal> c1 = new ArrayList<Cereal>();

        // Wrong because Pholimorfic assignments  cannot be applied to generic type parameters.
        // List<Cereal> c2 = new ArrayList<Flakes>();
        // List<Flakes> c2 = new ArrayList<Cereal>();
        // ArrayList<Cereal> c2 = new ArrayList<Flakes>();


    }
}
